libxl: fix printing hotplug arguments/environment
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 2 Aug 2016 10:49:51 +0000 (12:49 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 2 Aug 2016 16:03:10 +0000 (17:03 +0100)
commit25131cea72bfe8ce25cadc689df34e7e8b1596f9
treea10d613807fc73c59e551bbeec84c7f633f9bbd6
parenta221de7c7b29742b6f6d16070f7d3bd90673390d
libxl: fix printing hotplug arguments/environment

An OS could decide to not pass any environment variables to hotplug scripts,
and this will trigger a bug in device_hotplug logic, since it expects the
environment array to exist. Allow env to be NULL.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_device.c